<?php

use Phinx\Migration\AbstractMigration;

class AddColumnTypeInPlanTable extends AbstractMigration
{
    public function up()
    {
        $this->table("plan")
            ->addColumn('type', 'enum', ['values' => 'episode,step_category', 'default' => 'step_category', 'comment' => ' 排期增加集数分类'])
            ->save();
    }

    public function down()
    {
        $this->table("plan")
            ->removeColumn("type")
            ->save();
    }
}
